#{extends 'frame.html' /}
#{set title:'接单数量统计' /}

#{set 'moreStyles'}
<link rel="stylesheet" media="screen"
	href="@{'/public/stylesheets/admin/sysConfig.css'}" />
<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />
#{/set}

<div class="contentCard">
	<div class="contentBody" style="">
		<table class="normTable">
			<thead >
				<tr>
					<td>名称</td>
					<td>值</td>
					<td>备注</td>
					<td>修改时间</td>
					<td>操作</td>
				</tr>
			</thead>
			<tbody id="sysContainer"></tbody>
		</table>
		<div id="noMsg"><div class="warnBox"><span class="iconfont">&#xf00b6;</span>没有任务!</div></div>
		<div class="pagin-btm clearFix"style="display: none;">
			<div class="pagination"></div>
		</div>
		<div class="popWrapper" style="display: none;" id="tr_loading_mask">
			<div class="maskLayer"></div>
			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />		
		</div>
	</div>
</div>
<input type="hidden" id="takenTime" value="${takenTime}"></input>
<input type="hidden" id="type" value="${type}"></input>
<textarea id="orderTemp" class="muban">
{{#results}}
	<tr data-id={{id}}>
		<td>{{key}}</td>
		<td>{{value}}</td>
		<td>{{record}}</td>
		<td>{{modifyTimeStr}}</td>
		<td><a href="javascript:;" class="editBtn">修改</a></td>
	</tr>
{{/results}}
</textarea>
<div class="popWrapper" id="editConfig">
	<div class="maskLayer"></div>
	<div class="modalWnd">
		<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>
		<h3 class="topTile">修改配置</h3>
		<div class="modalWndInner">
			<form id="editConfigForm" action="/admin/updateSysConfig" method="post">
			<input type="hidden" name="sysConfig.id" id="editId" value=""/>
			#{authenticityToken /}
			<div class="panelLine">
					<span class="floatLeft mr10">名称：</span>  <span class="floatLeft mr10" id="sysConfigKey">sds</span> 
				</div>
				<div class="panelLine">
					<span class="floatLeft mr10">value:</span> <input type="text"
						class="bold required inputText" id="configValue" name="sysConfig.value">
				</div>
				<div class="panelLine">
					<span class="floatLeft mr10">备注:</span> <input type="text"
						class="bold required inputText" id="record" name="sysConfig.record">
				</div>
				
				<div class="wndBotButtonSection">
					<a id="editBtnSave" href="javascript:;" class="botButton">保存</a>
				</div>
			</form>
		</div>
	</div>
</div>
#{set 'moreScripts'}
<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/admin/sysConfig.js'}" type="text/javascript"></script>

#{/set}